package cn.javapulzzer.exept;

import java.util.Calendar;

public class Elvis {

	private final int beltSize;
	private static final int CURRENT_YEAR = Calendar.getInstance().get(
			Calendar.YEAR);
	public static final Elvis INSTANCE = new Elvis();
	
  public static void sayHello(){
	  System.out.println("HelloWorld");
  }
	private Elvis() {

		beltSize = CURRENT_YEAR - 1930;
		if(null instanceof Elvis)
		{
			
		}
	}

	public int beltSize() {
		return beltSize;
		
	}

	public static void main(String[] args) {
		System.out.println("Elvis wears a size " + INSTANCE.beltSize()
				+ " belt.");
		System.out.println(new Elvis());
		 
	}
}